package com.xbongbong.pro.formexplain.pojo;

import com.xbongbong.paas.field.FieldAttrEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Map;

/**
 * @author 吴峰
 * @date 2020/10/15 9:34
 */
@Getter
@Setter
@ToString
public class ConditionExplainPojo implements Serializable {

    private static final long serialVersionUID = 3515232532042404153L;

    private FieldAttrEntity parentFieldAttr;

    private FieldAttrEntity subFieldAttr;

    private Map<String, FieldAttrEntity> explainMap;

    private Boolean isSubForm;
    /**
     * 经销商标识
     * @see com.xbongbong.pro.enums.DistributorMarkEnum
     */
    private Integer distributorMark;

    public ConditionExplainPojo(FieldAttrEntity parentFieldAttr, FieldAttrEntity subFieldAttr, Map<String, FieldAttrEntity> explainMap, Boolean isSubForm, Integer distributorMark) {
        this.parentFieldAttr = parentFieldAttr;
        this.subFieldAttr = subFieldAttr;
        this.explainMap = explainMap;
        this.isSubForm = isSubForm;
        this.distributorMark = distributorMark;
    }
}
